<h1 class="loli-dialog-title">{if $news->news_id==0}Nouvelle info{else}Modification info ({$news->news_id}){/if}</h1>
<form class="loli-news">
  <input type="hidden" name="action" value="update" />
  <input type="hidden" name="news_id" value="{$news->news_id}" />
  <input type="hidden" name="what" value="news" />
  <input type="hidden" name="news_type" value="1" />
  <p>
    <label for="news_title">Titre</label>
    <input type="text" name="news_title" id="news_title" value="{$news->news_title}" />
    <label for="news_ontop">En haut</label>
    <input type="hidden" name="news_ontop" value="{$news->news_ontop}" />
    <input type="checkbox" id="news_ontop" {if $news->news_ontop==1}checked="checked"{/if} 
    title="Placer la nouvelle tout en haut, quelque soit sa date" />
  </p>
  <p>
    <label for="news_title">Message</label>
    <textarea name="news_txt" id="news_txt">{$news->news_txt}</textarea>
  </p>
  <p>
    <label for="news_datedp">Du</label>
    <input type="text" name="news_datedp" id="news_datedp" value="{$news->news_datedp|date_format:"%d/%m/%Y"}" class="datepicker" />
    <label for="news_datefp">Au</label>
    <input type="text" name="news_datefp" id="news_datefp" value="{$news->news_datefp|date_format:"%d/%m/%Y"}" class="datepicker" />
  </p>
</ul>
</form>
